package com.bfl.sa.showcase.parentchild.mapper;

import com.bfl.sa.common.mapper.BaseMapper;
import com.bfl.sa.common.mybatis.entity.Query;
import com.bfl.sa.showcase.parentchild.entity.Child;
import com.bfl.sa.showcase.parentchild.entity.Parent;

import java.util.List;


public interface ChildMapper extends BaseMapper<Child, Long> {

    List<Child> findByParent(Query query);

    List<Child> findByParents(Query query);

    void deleteByParent(Parent parent);
}
